﻿using B.X.Rabbit.Domain.RBAC;
using B.X.Rabbit.Domain.商品;
using B.X.Rabbit.Domain.深加工;
using B.X.Rabbit.Domain.屠宰;
using B.X.Rabbit.Domain.养殖;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.X.Rabbit.Infrastructure
{
    public class MainDbContext:DbContext
    {
        public MainDbContext(DbContextOptions<MainDbContext> options) : base(options) { }

        /// <summary>
        /// 用户信息表
        /// </summary>
        public DbSet<User> Users { get; set; }
        /// <summary>
        /// 角色信息表
        /// </summary>
        public DbSet<Role> Roles { get; set; }
        /// <summary>
        /// 权限信息表
        /// </summary>
        public DbSet<Permission> Permissions { get; set; }
        /// <summary>
        /// 用户角色关系表
        /// </summary>
        public DbSet<UserRole> UserRoles { get; set; }
        /// <summary>
        /// 角色权限关系表
        /// </summary>
        public DbSet<RolePermission> RolePermissions { get; set; }
        /// <summary>
        /// 养殖企业信息
        /// </summary>
        public DbSet<BreedingEnterprise> BreedingEnterprises { get; set; }
        /// <summary>
        /// 养殖
        /// </summary>
        public DbSet<Breeding> Breedings { get; set; }
        /// <summary>
        /// 保健
        /// </summary>
        public DbSet<Imunitys> Imunitys { get; set; }
        /// <summary>
        /// 深加工信息
        /// </summary>
        public DbSet<FurtherProcessingInformation> FurtherProcessingInformation { get; set; }
        /// <summary>
        /// 图片信息
        /// </summary>
        public DbSet<Pictures> Pictures { get; set; }
        /// <summary>
        /// 商品信息
        /// </summary>
        public DbSet<Good> Goods { get; set; }
        /// <summary>
        /// 溯源信息
        /// </summary>
        public DbSet<Traceabilitys> Traceabilitys { get; set; }
        /// <summary>
        /// 地址信息
        /// </summary>
        public DbSet<Addresses> Addresses { get; set; }
        /// <summary>
        ///  屠宰企业公司信息
        /// </summary>
        public DbSet<SlaughterEnterprise> SlaughterEnterprises { get; set; }
        /// <summary>
        ///  屠宰信息
        /// </summary>
        public DbSet<Slaughters> Slaughters { get; set; }
        /// <summary>
        /// 添加剂信息
        /// </summary>
        public DbSet<Additive> Additives { get; set; }
        /// <summary>
        ///  辅料信息
        /// </summary>
        public DbSet<AuxiliaryMaterial> AuxiliaryMaterials { get; set; }
        /// <summary>
        /// 深加工企业信息
        /// </summary>
        public DbSet<DeepProcessEnterprise> DeepProcessEnterprise { get; set; }
        /// <summary>
        /// 深加工信息
        /// </summary>
        public DbSet<DeepProcessInfo> DeepProcessInfo { get; set; }
        /// <summary>
        /// 供应商包材表
        /// </summary>
        public DbSet<PackagingMaterial> PackagingMaterial { get; set; }
        /// <summary>
        /// 原材料
        /// </summary>
        public DbSet<RowMaterial> RowMaterial { get; set; }




    }
}
